package com.sc.model.base;

import java.io.Serializable;
import java.util.Date;

import org.beetl.sql.core.annotatoin.AssignID;

public class BaseModel implements Serializable {

	private static final long serialVersionUID = 1L;

	public String id;
	public Date createDate;
	public int isDelete;

	public BaseModel() {
		super();
		this.createDate = new Date();
		this.isDelete = 0;
	}

	public BaseModel(String id) {
		super();
		this.id = id;
		this.createDate = new Date();
		this.isDelete = 0;
	}

	public BaseModel(String id, Date createDate, int isDelete) {
		super();
		this.id = id;
		this.createDate = new Date();
		this.isDelete = isDelete;
	}

	@AssignID("uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

}
